package com.pengtu.entity.receive;

import java.util.Date;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Where;

import com.pengtu.entity.IdEntity;
import com.pengtu.entity.project.Relationship;
import com.pengtu.entity.trial.Order;

/**
 * TCReceiveEntrust generated by hbm2java
 */
@Entity
@Table(name = "T_C_RECEIVE_ENTRUST")
public class Entrust extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Relationship relationship;
	private String entrustNum;
	private String idea;
	private String witnesses;
	private Date witnessesdate;
	private String operations;
	private String ophone;
	private String checkpeople;
	private String checkphone;
	private String standard;
	private String amount;
	private String feeearner;
	private String acceptkindpeople;
	private Date reportdate;
	private Date checkdate;
	private String remark;
	private String grade;
	private String accept;
	private Date acceptdate;
	private String dpeoples;
	private String dpeople;
	private String status;
	private String checktype;
	private String wphone;
	private String trialType;
	private Set<Order> orders;

	@OneToMany(mappedBy = "entrust")
	@Where(clause="delFlag = 0")
	public Set<Order> getOrders() {
		return orders;
	}

	public void setOrders(Set<Order> orders) {
		this.orders = orders;
	}

	@ManyToOne
	@JoinColumn(name = "PROJORGID")
	public Relationship getRelationship() {
		return this.relationship;
	}

	public void setRelationship(Relationship relationship) {
		this.relationship = relationship;
	}

	@Column(name = "ENTRUSTNUM")
	public String getEntrustNum() {
		return entrustNum;
	}

	public void setEntrustNum(String entrustNum) {
		this.entrustNum = entrustNum;
	}

	public String getIdea() {
		return this.idea;
	}

	public void setIdea(String idea) {
		this.idea = idea;
	}

	public String getWitnesses() {
		return this.witnesses;
	}

	public void setWitnesses(String witnesses) {
		this.witnesses = witnesses;
	}

	public Date getWitnessesdate() {
		return this.witnessesdate;
	}

	public void setWitnessesdate(Date witnessesdate) {
		this.witnessesdate = witnessesdate;
	}

	public String getOperations() {
		return this.operations;
	}

	public void setOperations(String operations) {
		this.operations = operations;
	}

	public String getOphone() {
		return this.ophone;
	}

	public void setOphone(String ophone) {
		this.ophone = ophone;
	}

	public String getCheckpeople() {
		return this.checkpeople;
	}

	public void setCheckpeople(String checkpeople) {
		this.checkpeople = checkpeople;
	}

	public String getCheckphone() {
		return this.checkphone;
	}

	public void setCheckphone(String checkphone) {
		this.checkphone = checkphone;
	}


	/**
	 * standard
	 *
	 * @return  the standard
	 * @since   1.0.0
	 */
	
	public String getStandard() {
		return standard;
	}

	/**
	 * @param standard the standard to set
	 */
	public void setStandard(String standard) {
		this.standard = standard;
	}

	public String getAmount() {
		return this.amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getFeeearner() {
		return this.feeearner;
	}

	public void setFeeearner(String feeearner) {
		this.feeearner = feeearner;
	}

	public String getAcceptkindpeople() {
		return this.acceptkindpeople;
	}

	public void setAcceptkindpeople(String acceptkindpeople) {
		this.acceptkindpeople = acceptkindpeople;
	}

	@Temporal(TemporalType.DATE)
	public Date getReportdate() {
		return this.reportdate;
	}

	public void setReportdate(Date reportdate) {
		this.reportdate = reportdate;
	}
	@Temporal(TemporalType.DATE)
	public Date getCheckdate() {
		return this.checkdate;
	}

	public void setCheckdate(Date checkdate) {
		this.checkdate = checkdate;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}


	public String getAccept() {
		return this.accept;
	}

	public void setAccept(String accept) {
		this.accept = accept;
	}

	public Date getAcceptdate() {
		return this.acceptdate;
	}

	public void setAcceptdate(Date acceptdate) {
		this.acceptdate = acceptdate;
	}

	public String getDpeoples() {
		return this.dpeoples;
	}

	public void setDpeoples(String dpeoples) {
		this.dpeoples = dpeoples;
	}

	public String getDpeople() {
		return this.dpeople;
	}

	public void setDpeople(String dpeople) {
		this.dpeople = dpeople;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getChecktype() {
		return this.checktype;
	}

	public void setChecktype(String checktype) {
		this.checktype = checktype;
	}

	public String getWphone() {
		return wphone;
	}

	public void setWphone(String wphone) {
		this.wphone = wphone;
	}

	@Column(name = "TRIALTYPE")
	public String getTrialType() {
		return trialType;
	}

	public void setTrialType(String trialType) {
		this.trialType = trialType;
	}

	/**
	 * grade
	 *
	 * @return  the grade
	 * @since   1.0.0
	 */
	
	public String getGrade() {
		return grade;
	}

	/**
	 * @param grade the grade to set
	 */
	public void setGrade(String grade) {
		this.grade = grade;
	}

}
